//
//  UIViewController+Honda.h
//  Honda
//
//  Created by Wang.Xinlei on 4/22/13.
//  Copyright (c) 2013 HeninHoo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

@interface UIView (Honda)

- (void)dismissFromSupviewWithCompletion:(void (^)(void))completion;

@end


@interface UIViewController (Honda)

- (void)presentView:(UIView *)viewToPresent completion:(void (^)(void))completion;
- (void)presentViewController:(UIViewController *)viewControllerToPresent completion:(void (^)(void))completion;
- (void)showView:(UIView *)viewToShowed enableDismiss:(BOOL)enableDismiss completion:(void (^)(void))completion;
- (void)showViewController:(UIViewController *)viewControllerToPresent enableDismiss:(BOOL)enableDismiss completion:(void (^)(void))completion;
- (void)popView:(UIView *)viewToPop from:(UIView *)from completion:(void (^)(void))completion;
- (void)popViewController:(UIViewController *)viewControllerToPop from:(UIView *)from completion:(void (^)(void))completion;
- (void)dismissWithCompletion:(void (^)(void))completion;

- (void)dismissFromParentViewControllerWithCompletion:(void (^)(void))completion;

@end
